package com.barneyx.mshinfoplatform.entity.info;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.barneyx.mshinfoplatform.entity.CommonEntity;
import com.barneyx.mshinfoplatform.entity.enums.EFavoriteType;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableCharset;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableEngine;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "msh_info_favorite_list", autoResultMap = true)
@TableCharset(MySqlCharsetConstant.UTF8)
@TableEngine(value = MySqlEngineConstant.MyISAM)
@TableComment("用户消息收藏")
@Slf4j
public class InfoFavoriteEntity extends CommonEntity {
    @TableId("favorite_id")
    @Column(type = MySqlTypeConstant.BIGINT)
    private String FavoriteId;


    @TableField("favorite_type")
    @Column(type = MySqlTypeConstant.TINYINT)
    private EFavoriteType FavoriteType;

    @TableField("favorite_name")
    private String FavoriteName;

    @TableField("favorite_url")
    private String FavoriteUrl;


    @TableField("favorite_info_id")
    @Column(type = MySqlTypeConstant.BIGINT)
    private String FavoriteInfoId;


    @TableField("post_name")
    private String PostName;

    @TableField("post_via")
    private String PostVia;

    @TableField("post_user_platform_user_id")
    @Column(type = MySqlTypeConstant.BIGINT)
    private String PostUserId;

}
